<template>
<div>
  <el-row class="tac">
    <el-col :span="4">
      <h5>西安动车段调度签收系统</h5>
      <el-menu
        default-active="2"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
      >
        <el-submenu index="1">
          <template #title>
            <i class="el-icon-location"></i>
            <span>命令管理</span>
          </template>
            <el-menu-item index="1-1">签收命令</el-menu-item>
            <el-menu-item index="1-2">我的签收</el-menu-item>
            <el-menu-item index="1-3">我的发布</el-menu-item>
        </el-submenu>
      </el-menu>
    </el-col>
  </el-row>
</div>
</template>

<script>
export default {
  name: "index.vue",
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath)
    },
  },
}
</script>

